<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<select id="yearSel" onchange="change()">
		</select>
		<select id="monthSel"></select>
		<select id="daySel"></select>
		<br />
		<div id="div01"></div>
		<script>
			for (var i = 1990; i <= 2024; i++) {
				var tmpOption = document.createElement("option");
				var txtNode = document.createTextNode(i + "年");
				tmpOption.appendChild(txtNode);
				yearSel.appendChild(tmpOption);
			}
			function change() {
				console.log(yearSel.value);
				div01.textContent = yearSel.value;
			}
		</script>
	</body>
</html>